package com.eastdigit.org.inter;

import com.eastdigit.org.model.EmployeePos;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeePosMapper {
    int deleteByPrimaryKey(@Param("empId") String empId, @Param("deptId") String deptId, @Param("posId") String posId);

    int insert(EmployeePos record);

    EmployeePos selectByPrimaryKey(@Param("empId") String empId, @Param("deptId") String deptId, @Param("posId") String posId);

    int updateByPrimaryKeySelective(EmployeePos record);

    int updateByPrimaryKey(EmployeePos record);

    List<EmployeePos> selectAllEmployeePos();

    List<EmployeePos> selectByEmpId(@Param("empId") String empId);

    List<EmployeePos> selectByPosId(@Param("posId") String posId);

    int deleteByDeptIdAndPosId(@Param("deptId") String deptId, @Param("posId") String posId);

    int deleteByEmpId(@Param("empId") String empId);
}
